package com.lp.biz.identity.controller;

import com.lp.biz.identity.service.BizIdentityService;
import com.lp.common.annotation.PermissionAnnotation;
import com.lp.common.utils.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: backend
 * @description: BizIdentityController
 * @author Ke.Song
 * @since 2024-05-14 20:43:28
 */
@RestController
@RequestMapping("/identities")
public class BizIdentityController {

    @Autowired
    private BizIdentityService identityService;

    /**
     * 获取身份下拉
     * @return 查询结果
     */
    @GetMapping("/down")
    @PermissionAnnotation
    public CommonResult getIdentityDown() {
        return identityService.getIdentityDown();
    }
}
